package org.intellij.doctree;

import com.intellij.openapi.util.IconLoader;

import javax.swing.*;
import javax.swing.tree.DefaultTreeCellRenderer;

public class DocTreeRenderer extends DefaultTreeCellRenderer {

    public static final Icon leafIcon = IconLoader.getIcon("/org/intellij/doctree/resources/docNode.png", DocTreeRenderer.class);

    public DocTreeRenderer() {
        setLeafIcon(getDefaultLeafIcon());
    }

    public Icon getDefaultLeafIcon() {
        return leafIcon;
    }
}
